<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:s="http://jboss.com/products/seam/taglib">

<body>
<h1>Page B</h1>
<h3>Showing the person that came from page A, injecting it directly
with seam el.</h3>

<h:form>

	<h3>Get person from conversation:</h3>
	<b> Person Name: #{pagecAction.retrievePersonName()}<br />
	Person Email: #{pagecAction.retrievePersonEmail()}<br />
	</b>


	<table>
		<tbody>
			<tr style="vertical-align: top;">
				<td>

				<h3>Render pageA - @End</h3>
				<h:commandButton action="#{pagebAction.rule1()}"
					value="h:commandButton" /> <br />
				<a4j:commandButton action="#{pagebAction.rule1()}"
					value="a4j:commandButton" /> <br />
				<s:button action="#{pagebAction.rule1()}" value="s:button" /> <br />
				<h:commandLink action="#{pagebAction.rule1()}" value="h:commandLink" />
				<br />
				<a4j:commandLink action="#{pagebAction.rule1()}"
					value="a4j:commandLink" /> <br />
				<s:link action="#{pagebAction.rule1()}" value="s:link" /> <br />

				<h3>Render pageA - &lt;end-conversation&gt;</h3>
				<h:commandButton action="#{pagebAction.rule2()}"
					value="h:commandButton" /> <br />
				<a4j:commandButton action="#{pagebAction.rule2()}"
					value="a4j:commandButton" /> <br />
				<s:button action="#{pagebAction.rule2()}" value="s:button" /> <br />
				<h:commandLink action="#{pagebAction.rule2()}" value="h:commandLink" />
				<br />
				<a4j:commandLink action="#{pagebAction.rule2()}"
					value="a4j:commandLink" /> <br />
				<s:link action="#{pagebAction.rule2()}" value="s:link" /> <br />

				<h3>Redirect to pageA - &lt;end-conversation
				before-redirect=true&gt;</h3>
				<h:commandButton action="#{pagebAction.redirectA()}"
					value="h:commandButton" /> <br />
				<a4j:commandButton action="#{pagebAction.redirectA()}"
					value="a4j:commandButton" /> <br />
				<s:button action="#{pagebAction.redirectA()}" value="s:button" /> <br />
				<h:commandLink action="#{pagebAction.redirectA()}"
					value="h:commandLink" /> <br />
				<a4j:commandLink action="#{pagebAction.redirectA()}"
					value="a4j:commandLink" /> <br />
				<s:link action="#{pagebAction.redirectA()}" value="s:link" /> <br />

				<h3>Redirect to pageA - @End(beforeRedirect=true)</h3>
				<h:commandButton action="#{pagebAction.redirectA2()}"
					value="h:commandButton" /> <br />
				<a4j:commandButton action="#{pagebAction.redirectA2()}"
					value="a4j:commandButton" /> <br />
				<s:button action="#{pagebAction.redirectA2()}" value="s:button" />
				<br />
				<h:commandLink action="#{pagebAction.redirectA2()}"
					value="h:commandLink" /> <br />
				<a4j:commandLink action="#{pagebAction.redirectA2()}"
					value="a4j:commandLink" /> <br />
				<s:link action="#{pagebAction.redirectA2()}" value="s:link" /> <br />

				<h3>Redirect to pageA - &lt;end-conversation
				before-redirect=false&gt;</h3>
				<h:commandButton action="#{pagebAction.redirectA3()}"
					value="h:commandButton" /> <br />
				<a4j:commandButton action="#{pagebAction.redirectA()}"
					value="a4j:commandButton" /> <br />
				<s:button action="#{pagebAction.redirectA()}" value="s:button" /> <br />
				<h:commandLink action="#{pagebAction.redirectA()}"
					value="h:commandLink" /> <br />
				<a4j:commandLink action="#{pagebAction.redirectA()}"
					value="a4j:commandLink" /> <br />
				<s:link action="#{pagebAction.redirectA()}" value="s:link" /> <br />

				<h3>Redirect to pageA - @End(beforeRedirect=false)</h3>
				<h:commandButton action="#{pagebAction.redirectA4()}"
					value="h:commandButton" /> <br />
				<a4j:commandButton action="#{pagebAction.redirectA4()}"
					value="a4j:commandButton" /> <br />
				<s:button action="#{pagebAction.redirectA4()}" value="s:button" />
				<br />
				<h:commandLink action="#{pagebAction.redirectA4()}"
					value="h:commandLink" /> <br />
				<a4j:commandLink action="#{pagebAction.redirectA4()}"
					value="a4j:commandLink" /> <br />
				<s:link action="#{pagebAction.redirectA4()}" value="s:link" /> <br />
				</td>
				<td>

				<h3>Refresh</h3>
				<h:commandButton action="#{pagebAction.doNothing()}"
					value="h:commandButton Postback" /> <br />
				<a4j:commandButton action="#{pagebAction.doNothing()}"
					value="a4j:commandButton Postback" reRender="dataGrid" /> <br />
				<s:button action="#{pagebAction.doNothing()}"
					value="s:button Postback" /> <br />
				<h:commandLink action="#{pagebAction.doNothing()}"
					value="h:commandLink Postback" /> <br />
				<a4j:commandLink action="#{pagebAction.doNothing()}"
					value="a4j:commandLink Postback" reRender="dataGrid" /> <br />
				<s:link action="#{pagebAction.doNothing()}" value="s:link Postback" />
				<br />

				</td>


				<td>



				<h3>Render pageC</h3>
				<h:commandButton action="#{pagebAction.rule3()}"
					value="h:commandButton" /> <br />
				<a4j:commandButton action="#{pagebAction.rule3()}"
					value="a4j:commandButton" /> <br />
				<s:button action="#{pagebAction.rule3()}" value="s:button" /> <br />
				<h:commandLink action="#{pagebAction.rule3()}" value="h:commandLink" />
				<br />
				<a4j:commandLink action="#{pagebAction.rule3()}"
					value="a4j:commandLink" /> <br />
				<s:link action="#{pagebAction.rule3()}" value="s:link" /> <br />
				</td>
			</tr>
		</tbody>
	</table>
</h:form>

</body>
</html>